package com.rgs.ssm.dao;

import com.rgs.ssm.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ren Gaoshuai
 * @create 2021-06-01 22:49
 *
 * 系统日志 持久层接口
 **/

@Repository
public interface ISysLogDao {

    @Select("select * from sysLog")
    List<SysLog> findAll();

    @Insert("insert into sysLog (visitTime,username,ip,url,executionTime,method) values (#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method}) ")
    void save(SysLog sysLog);
}
